package com.preskool.service;

import com.preskool.po.Expenses;

import java.util.List;

/**
 * @param
 * @Author swj
 * @Date 2021/1/7
 * @version1.0
 */
//花费页面和增加花费页面:业务接口
public interface ExpensesService {
    /**
     * 查询全部数据,并进行分页
     * @return
     */
    List<Expenses> findAllPage(Integer currentPage, Integer pageSize);

    /**
     * 通过id查询单条数据
     * @return
     */
    Expenses findOne(Integer extid);

    /**
     * 修改数据
     * @param expenses
     * @return
     */
    int updateExp(Expenses expenses);

    /**
     * 增加费用
     * @param expenses
     * @return
     */
    int addExpenses(Expenses expenses);

    /**
     * 根据id删除数据
     * @param extid
     * @return
     */
    int delExpenses(Integer extid);


}
